package com.huihuiyun.huihuiyun.server.repository;

import com.huihuiyun.huihuiyun.server.domain.HhyOrder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface HhyOrderRepository extends JpaRepository<HhyOrder, String> {
    List<HhyOrder> findAllByMemberIdAndStatus(String member, int status);

    List<HhyOrder> findAllByMemberId(String memberId);

    Page<HhyOrder> findAllByMemberIdAndStatus(String memberId, int status, Pageable pageable);

    Page<HhyOrder> findAllBySellerIdAndStatus(String sellerId, int status, Pageable pageable);

    Page<HhyOrder> findAllBySellerIdAndMallType(String sellerId, int mallType, Pageable pageable);
}
